<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>建议图书馆购买书籍</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link rel="stylesheet" href="${pageContext.request.contextPath }/dist/css/bootstrap.min.css" type="text/css"></link>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/ie10-viewport-bug-workaround.css" type="text/css"></link>
    <link rel="stylesheet" href="${pageContext.request.contextPath }/assets/css/justified-nav.css" type="text/css"></link>
    <script type="text/javascript" src="${pageContext.request.contextPath }/assets/js/ie-emulation-modes-warning.js"></script>
    
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/jquery.pagination.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.pagination.min.js"></script>
</head>
<body>
 <div class="container">
      <div class="masthead">
        <h3 class="text-muted">智能图书管理系统</h3>
        <nav>
          <ul class="nav nav-justified">
            <li class="active"><a href="<%=request.getContextPath()%>/user/show">图书查询</a></li>
            <li ><a href="<%=request.getContextPath()%>/user/back">借阅查询</a></li>
            <li><a href="<%=request.getContextPath()%>/user/showBackBook">图书归还或评分</a></li>
            <li><a href="<%=request.getContextPath()%>/user/showReserveBook">预约查询</a></li>
            <li><a href="<%=request.getContextPath()%>/user/person">个人信息</a></li>
            <li><a href="<%=request.getContextPath()%>/quit">退出登录</a></li>
          </ul>
        </nav>
      </div>
      
 <div align="center">
  <h1><lable>请填写您建议购买的书的信息:</lable></h1>
  <br/>
             <c:if test="${msg!=null }">
			     <span class="text-danger">${msg}</span>
			 </c:if>
			 
<form id="form" action="<%=request.getContextPath()%>/user/suggestBuy2" method="post">
		
		
		<lable>书籍名称：</lable><input style='width:300px;' type="text" name="bname" 
			 placeholder="书籍名称" 
			<c:if test="${bname!=null and bname!='' }">value="${bname }"</c:if> />&nbsp;&nbsp;
		<br/>
		<br/>
		<br/>
		<lable>书籍作者：</lable> <input style='width:300px;' type="text" name="author" 
			 placeholder="书籍作者" 
			<c:if test="${author!=null and author!='' }">value="${author}"</c:if> />&nbsp;&nbsp;
		<br/>
		<br/>
		<br/>
		<lable>出&nbsp;&nbsp;版&nbsp;社：</lable>	<input style='width:300px;' type="text" name="endition" 
			 placeholder="书籍出版社" 
			<c:if test="${edition!=null and edition!='' }">value="${edition}"</c:if> />&nbsp;&nbsp;
		<br/>
		<br/>
		<br/>
		<lable>书籍类别:</lable>&nbsp;&nbsp;&nbsp;<select  name="sid" style='width:300px;'>
					<option value="0" selected="selected">--请选择书籍类别--</option>
					<c:forEach items="${sorts }" var="sort">
						<option value="${sort.id }" <c:if test="${sid==sort.id }">selected</c:if>>${sort.sname }</option>
					</c:forEach>
				</select>&nbsp;&nbsp;
				
		<br/>
		<br/>
		<br/>
		<button type="submit" class="btn btn-success btn-block" style='width:250px;'>提交</button>
	</form>	
	
	<br/>
	<a href="<%=request.getContextPath()%>/user/show" class="btn btn-primary btn-block" style='width:250px;'>返回</a>
</div>

   <!-- Site footer -->
      <footer class="footer" align="center">
        <p>YanJiaDou &copy; 2020 版权所有</p>
      </footer>    
      
</div>









</body>
</html>